package com.yaoq.proxy.interceptor;

/**
 * @ClassName Client
 * @Description TODO
 * @Author yaoqiang
 * @Date 2020/9/2 10:59
 * @Version 1.0
 */
public class Client {
    public static void main(String[] args) {
        //静态代理
        Yao yao = new Yao();
        LinkHome linkHome = new LinkHome(yao);
        linkHome.pay();
        //jdk代理
        LinkHome proxy = (LinkHome) ProxyFactory.getProxy(yao);
        proxy.pay();
    }

}
